package com.ruoyi.common.enums;

/**
 * 用户状态
 * 
 * @author ruoyi
 */
public enum OrgRiskTypeEnum
{
    CHEYC("0", "车辆异常"),
    HUOYC("1", "火灾异常"),
    XRYC("2", "行人异常"),
    GJYC("3", "工具异常");

    private final String code;
    private final String info;

    OrgRiskTypeEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public static String getOrgRiskTypeEnumByInfo(String info){

        for (OrgRiskTypeEnum o : OrgRiskTypeEnum.values()) {
            if(o.getInfo().equals(info)){
                return o.getInfo();
            }
        }
    return null;
    }
    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
}
